package com.wind.taobao.api.sns.message.rest
{
	import com.wind.taobao.api.IPrivateAPI;
	import com.wind.taobao.core.exception.InvalidRequestParametersException;
	import com.wind.taobao.core.util.TaobaoUtils;
	import com.wind.taobao.core.webservice.TaobaoRequest;

	[Deprecated(replacement="com.wind.taobao.api.jianghu.rest.JianghuMsgPublishRequest", since="2.0")]
	/**
	 * taobao.sns.message.send Request
	 * @author fxy
	 *
	 */
	public class SNSMessageSendRequest extends TaobaoRequest implements IPrivateAPI
	{
		public override function get method():String
		{
			return "taobao.sns.message.send"
		}
		[Bindable]
		public var to_uid:int; // Y 	 接收者id
		[Bindable]
		public var content:String; //	Y 	动态信息 社区动态/消息格式

		public override function validate():void
		{
			if (!TaobaoUtils.hasAllValue([to_uid, content]))
			{
				throw new InvalidRequestParametersException("请求参数[to_uid,content]不能为空");
			}
		}
	}
}